-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.wat
43 lines (32 loc) · 1.05 KB
/
Makefile.wat
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for building and installing eudoc
# Assumes a working euphoria installation
!include config.wat
!ifndef PREFIX
PREFIX=$(%EUDIR)
!endif
all : .SYMBOLIC build\creole.exe
# Because when build/main-.c and build/creole.exe are built the timestamp for the directory
# will be updated, we need to specify that we only care if build exists and not if it has a
# timestamp newer than the targets it contains.
build : .existsonly
mkdir build
build\main-.c build\creole.mak : build creole.ex $(CREOLEHTML)
cd build
euc -wat -makefile -con ..\creole.ex
cd ..
build\creole.exe : build\main-.c build\creole.mak
cd build
$(MAKE) -f creole.mak
cd ..
install : .SYMBOLIC
copy build\creole.exe $(PREFIX)\bin\
uninstall : .SYMBOLIC
-del $(PREFIX)\bin\creole.exe
clean : .SYMBOLIC
-del /S /Q build
# remove intermediate files without marking things as out of date.
# wmake will do nothing unless source are changed.
mostlyclean : .SYMBOLIC
-del build\*.obj
distclean : .SYMBOLIC clean
-del Makefile config.wat