-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
41 lines (35 loc) · 972 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
NAME = phomemo-tools
VERSION = 2.0
FILES = Makefile
FILES += phomemo-tools.spec
FILES += LICENSE
FILES += README.md
FILES += tools/Makefile
FILES += tools/format-checker.py
FILES += tools/phomemo-filter.py
FILES += cups/Makefile
FILES += cups/README.md
FILES += cups/filter/rastertopm02_t02.py
FILES += cups/filter/rastertopm110.py
FILES += cups/backend/phomemo.py
FILES += cups/drv/phomemo-m02_t02.drv
FILES += cups/drv/phomemo-m110.drv
FILES += glabels/generate.sh
FILES += glabels/Makefile
FILES += glabels/Phomemo_Q22.template
all:
make -C cups
make -C glabels
install:
install -Dm 0644 README.md -t $(DESTDIR)/usr/share/phomemo/
install -Dm 0644 LICENSE -t $(DESTDIR)/usr/share/phomemo/
make -C tools install
make -C cups install
make -C glabels install
dist:
tar Jcvf $(NAME)-$(VERSION).tar.xz --xform "s/^/$(NAME)-$(VERSION)\//" $(FILES)
clean:
rm -fr $(NAME)-$(VERSION).tar.xz
rm -fr cups/ppd
rpm: all dist
rpmbuild --ta $(NAME)-$(VERSION).tar.xz