enable "install" target on Plan 9, install as games/uxn*

This commit is contained in:
Sigrid Solveig Haflínudóttir 2023-05-02 23:01:29 +00:00
parent c7f3014fe9
commit a740105b76
2 changed files with 5 additions and 4 deletions

View File

@ -36,10 +36,10 @@ cc src/devices/datetime.c src/devices/system.c src/devices/file.c src/uxn.c -DND
### Plan 9 ### Plan 9
To build the Uxn emulator on [9front](http://9front.org/), via [npe](https://git.sr.ht/~ft/npe): To build and install the Uxn emulator on [9front](http://9front.org/), via [npe](https://git.sr.ht/~ft/npe):
```rc ```rc
mk mk install
``` ```
If the build fails on 9front because of missing headers or functions, try again after `rm -r /sys/include/npe`. If the build fails on 9front because of missing headers or functions, try again after `rm -r /sys/include/npe`.

5
mkfile
View File

@ -1,5 +1,6 @@
</$objtype/mkfile </$objtype/mkfile
BIN=/$objtype/bin/games
TARG=bin/uxncli bin/uxnasm bin/uxnemu TARG=bin/uxncli bin/uxnasm bin/uxnemu
USM=`{walk -f projects/ | grep '\.tal$' | grep -v blank.tal | grep -v /assets/ | grep -v /library/} USM=`{walk -f projects/ | grep '\.tal$' | grep -v blank.tal | grep -v /assets/ | grep -v /library/}
ROM=${USM:%.tal=%.rom} ROM=${USM:%.tal=%.rom}
@ -56,7 +57,7 @@ clean:V:
%.clean:V: %.clean:V:
rm -f $stem.[$OS] [$OS].$stem $stem rm -f $stem.[$OS] [$OS].$stem $stem
install:QV: all install:V: all
exit 'Sorry, there is no install rule yet' cp $TARG $BIN/
#LDFLAGS=-p #LDFLAGS=-p