mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-02-02 23:01:03 +00:00
Add top level Makefile.linux for building everything at once.
This commit is contained in:
29
Makefile.linux
Normal file
29
Makefile.linux
Normal file
@@ -0,0 +1,29 @@
|
||||
SUBDIRS := common mopd mopcopy mopprobe moptrace mopchk
|
||||
|
||||
CLEANDIRS := $(SUBDIRS:%=clean-%)
|
||||
INSTALLDIRS := $(SUBDIRS:%=install-%)
|
||||
|
||||
.PHONY : all $(SUBDIRS) $(CLEANDIRS) $(INSTALLDIRS)
|
||||
|
||||
all: $(SUBDIRS)
|
||||
|
||||
# Dependencies between targets
|
||||
|
||||
mopd: common
|
||||
mopcopy: common
|
||||
mopprobe: common
|
||||
moptrace: common
|
||||
mopchk: common
|
||||
|
||||
# Rules
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@ -f Makefile.linux
|
||||
|
||||
install: $(INSTALLDIRS) all
|
||||
$(INSTALLDIRS):
|
||||
$(MAKE) -C $(@:install-%=%) -f Makefile.linux install
|
||||
|
||||
clean: $(CLEANDIRS)
|
||||
$(CLEANDIRS):
|
||||
$(MAKE) -C $(@:clean-%=%) -f Makefile.linux clean
|
||||
Reference in New Issue
Block a user