Skip to content

Commit

Permalink
Add package target in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDcoder committed Dec 13, 2018
1 parent 86f83a9 commit 722d674
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mapmywindows
mapmywindows.1.gz
mapmywindows.tar.gz
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ compiler = gcc
program = mapmywindows
man = $(program).1

.PHONY: install uninstall clean
.PHONY: install uninstall package clean

$(program): $(program).c
$(compiler) -O2 -Wall -o $(program) xkeymacro/xkeymacro.c $(program).c -lX11 -lxdo
Expand All @@ -11,6 +11,9 @@ $(man).gz: $(program)
help2man --no-info --output $(man) ./$(program)
gzip $(man)

package: $(program) $(man).gz
tar --create --gzip --file $(program).tar.gz $(program) $(man).gz

install: $(program) $(man).gz
install $(program) /usr/bin
install $(man).gz /usr/share/man/man1
Expand All @@ -22,3 +25,4 @@ uninstall:
clean:
-rm $(program)
-rm $(man).gz
-rm $(program).tar.gz
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ install:
build_script:
- sh: |
make
make mapmywindows.1.gz
make package
after_build:
- sh: |
./mapmywindows --version
./mapmywindows --help
artifacts:
- path: mapmywindows.tar.gz
name: Binary Package
- path: mapmywindows
name: Main Binary
- path: mapmywindows.1.gz
Expand Down

0 comments on commit 722d674

Please sign in to comment.