Skip to content

Commit

Permalink
Fix makefile from doing a dumb (#21)
Browse files Browse the repository at this point in the history
* Fix makefile from doing a dumb

* AND I'll DO IT AGAIN

* one more try

* hope this one works

* update workflow to enable packaging
  • Loading branch information
anoraktrend authored Jul 14, 2024
1 parent a3d004f commit b34fef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name make prefix
run: mkdir -p ./usr/bin ./usr/share/man/man1/
- name: make
run: make
run: make CFLAGS="-static"
- name: make install
run: DESTDIR=. PREFIX=/usr/ make install
- name:
run: tar czf aee-14.1.tar.gz ./usr/
- name: make uninstall
run: make uninstall
- name: make clean
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ PREFIX?= /usr/
main : ncurses

install : main
install -Dm755 aee $(DESTDIR)$(PREFIX)/bin/
install -Dm644 aee.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m755 aee $(DESTDIR)$(PREFIX)bin/
install -m644 aee.1 $(DESTDIR)$(PREFIX)share/man/man1/

uninstall : clean
rm -rf $(DESTDIR)$(PREFIX)/bin/aee $(DESTDIR)$(PREFIX)/share/man/man1/aee.1
Expand Down

0 comments on commit b34fef5

Please sign in to comment.