mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
topdir.mk: Put all undispensable topdir Makefile functionality
This commit is contained in:
parent
1c9b4dc4ed
commit
c545c71b7a
1 changed files with 24 additions and 4 deletions
|
|
@ -1,5 +1,20 @@
|
|||
SUBDIRS ?= make
|
||||
|
||||
all:
|
||||
install:
|
||||
clean: topdir.clean
|
||||
distclean: topdir.distclean
|
||||
config:
|
||||
|
||||
ifeq ($(wildcard $(TOPDIR)/make/defs.mk),)
|
||||
include make/moddir.mk
|
||||
else
|
||||
|
||||
include $(MODDIR)/make/defs.mk
|
||||
include $(MODDIR)/make/rpmdist.mk
|
||||
-include $(TOPDIR)/make/rpmdist.mk
|
||||
include $(MODDIR)/make/subdirs.mk
|
||||
|
||||
local-%:
|
||||
find . -name $@.mk | \
|
||||
while read f; do (\
|
||||
|
|
@ -11,10 +26,15 @@ local-%:
|
|||
unlocal:
|
||||
rm -f $(shell find . -name local.mk)
|
||||
|
||||
include $(MODDIR)/make/subdirs.mk
|
||||
|
||||
distclean:
|
||||
topdir.distclean:
|
||||
rm -f $(DISTCLEAN)
|
||||
|
||||
clean:
|
||||
topdir.clean:
|
||||
rm -f $(CLEAN)
|
||||
|
||||
endif
|
||||
|
||||
ifneq ($(wildcard $(TOPDIR)/make/defs.mk.in),)
|
||||
include $(MODDIR)/make/autoconf.mk
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue