update Makefile to actually work for packaging #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make prefix | |
run: mkdir -p ./usr/bin ./usr/share/man/man1/ | |
- name: make | |
run: make | |
- name: make install | |
run: DESTDIR=. PREFIX=/usr/ make install | |
- name: package | |
run: tar czf aee-14.1.tar.gz ./usr/ | |
- name: make uninstall | |
run: make uninstall | |
- name: make clean | |
run: make clean |