forked from attie/libxbee3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (29 loc) · 743 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
# get hold of the build system
include make/buildsys.mk
# the configuration can be found in config.mk after running `make configure`
.PHONY: all configure new clean distclean
all: $(LIB_OUT)
configure: config.mk
@true
new: clean
@$(MAKE) all
clean:
ifneq ($(CLEAN_FILES),)
$(RM) $(CLEAN_FILES)
endif
distclean: clean
$(RM) $(patsubst %,.%.dir,$(CONSTRUCTIONDIRS))
$(RMDIR) $(CONSTRUCTIONDIRS)
ifneq ($(DISTCLEAN_FILES),)
$(RM) $(DISTCLEAN_FILES)
endif
# get hold of the build rules
include $(firstword $(BUILD_RULES))
# get hold of the install rules if there are any
ifneq ($(INSTALL_RULES),)
include $(firstword $(INSTALL_RULES))
endif
.PHONY: install uninstall
install: $(INSTALL_FILES)
uninstall:
rm -rf $(INSTALL_FILES)