-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (26 loc) · 983 Bytes
/
makefile
File metadata and controls
28 lines (26 loc) · 983 Bytes
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
package:
@mkdir .temp
@mkdir -p .temp/usr/bin & mkdir -p .temp/usr/share/testscript
@cp testscript .temp/usr/bin/ & cp testscript .temp/usr/share/testscript/
@mkdir ./.temp/DEBIAN
@echo "Package: testscript" >> ./.temp/DEBIAN/control
@echo "Priority: optional " >> ./.temp/DEBIAN/control
@echo "Section: shells " >> ./.temp/DEBIAN/control
@echo "Maintainer: Harry " >> ./.temp/DEBIAN/control
@echo "Architecture: all " >> ./.temp/DEBIAN/control
@echo "Version: 1.0 " >> ./.temp/DEBIAN/control
@echo "Depends: " >> ./.temp/DEBIAN/control
@echo "Description: simple makefile" >> ./.temp/DEBIAN/control
@chmod +x .temp/usr/bin/testscript
@dpkg -b .temp package.deb
@sudo rm -r .temp
@echo "Done!"
install:
@install -d $(DESTDIR)/usr/share/testscript/
@install -d $(DESTDIR)/usr/bin
@install -v -m 755 testscript $(DESTDIR)/usr/bin/
remove:
@echo "Removing..."
@rm -rf $(DESTDIR)/usr/share/testscript
@rm -rf $(DESTDIR)/usr/bin/testscript
@echo "Done!"