-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 1.07 KB
/
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
.EXPORT_ALL_VARIABLES:
SHELL = /bin/bash
PRGNAM = will_it_mesh
VERSION =
MODORDER = 001-
DESTDIR?=$(PKGBUILDDIR)/$(PRGNAM)
## Variables that should be inherited from the parent Makefile or the environment
# MODULEDIR - the directory where finished modules should but stored
# ARCH - from the build environment
# BYZBUILD - Byzantium build version
# MODEXT - module extension (should be '.xzm')
##
# high level targets
.PHONY : build module install clean dist-clean
build:
echo 'build is a noop in this Makefile'
install: byzantium_configd.py verify_operation.sh
$(INSTALL_EXEC) $@ $(DESTDIR)/opt/byzantium/bin #FIXME give correct location
module: install
dir2xzm $(DESTDIR) $(MODULEDIR)/$(MODORDER)$(PRGNAM)$(VERSION)-$(ARCH)-$(BYZBUILD).$(MODEXT)
clean: byzantium_configd.py verify_operation.sh
# Do *not* remove $(DESTDIR)! If the build is for a monolithic module that will remove everything from every build.
$(CLEAN) $(DESTDIR)/opt/byzantium/bin/$@ #FIXME give correct location
dist-clean: clean
$(CLEAN) $(MODULEDIR)/$(MODORDER)$(PRGNAM)$(VERSION)-$(ARCH)-$(BYZBUILD).$(MODEXT)