forked from open-power/HTX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 958 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include htx.mk
SUBDIRS= inc lib bin rules etc mdt cleanup pattern setup runsetup \
runcleanup Documentation equaliser_cfgs
SUBDIRS_CLEAN = $(patsubst %,%.clean,$(SUBDIRS))
TARGET= .htx_profile \
.htxrc \
.bash_profile \
.bashrc \
htx_eq.cfg \
htx_diag.config \
run_htx_cmdline.sh \
hxsscripts
.PHONY: all ${SUBDIRS} deb
default: all
lib: inc
bin: lib
${SUBDIRS}:
$(MAKE) -C $@
all: ${SUBDIRS}
@echo "making dir - "${SHIPTOPDIR}
${MKDIR} ${SHIPTOPDIR}
${CP} ${TARGET} ${SHIPTOPDIR}
.PHONY: clean ${SUBDIRS_CLEAN} clean_local
clean: ${SUBDIRS_CLEAN} clean_local
@echo "Removing dir - "${SHIPDIR}
${RM} -rf ${SHIPDIR}
@echo "Removing dir - "${EXPORT}
${RM} -rf ${EXPORT}
${SUBDIRS_CLEAN}:
@$(MAKE) -C $(@:.clean=) clean
%.clean: %
@$(MAKE) -C $< clean
deb:
@echo "Making HTX Debian package..."
cp -r $(PACKAGINGDIR)/ubuntu/* $(SHIPDIR)/
dpkg-deb -b $(SHIPDIR) $(TOPDIR)/htxubuntu.deb