-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·35 lines (30 loc) · 837 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
VERSION := $(shell cat VERSION)
PRODUCT = appie
PACKAGE := appie-$(VERSION)
default:
@echo $(VERSION)
@echo $(PACKAGE)
dist: struct
export PACKAGE=$(PACKAGE)
cp appie.conf build/$(PACKAGE)/etc
cp appie_sudo build/$(PACKAGE)/etc/sudoers.d/appie
cp includes build/$(PACKAGE)/usr/lib/appie
cp -r modules build/$(PACKAGE)/usr/lib/appie
cp appie build/$(PACKAGE)/usr/bin
chmod 0440 build/$(PACKAGE)/etc/sudoers.d/appie
chmod a+x build/$(PACKAGE)/usr/bin/appie
cp -r DEBIAN build/$(PACKAGE)
cd build; fakeroot dpkg-deb --build $(PACKAGE)
cp build/$(PACKAGE).deb dist
struct:
make realclean
mkdir dist
mkdir -p build/$(PACKAGE)/etc/sudoers.d
mkdir -p build/$(PACKAGE)/usr/bin
mkdir -p build/$(PACKAGE)/usr/lib/appie
clean:
rm -f `find . -name '*~'`
rm -f `find . -name '#*'`
realclean: clean
rm -rf dist
rm -rf build