Makefile
changeset 4 2f4e88604125
parent 0 52e9f64937bf
child 10 d63cce6d1a09
equal deleted inserted replaced
3:d0bc42746346 4:2f4e88604125
     1 
     1 
     2 FILES = stomp.nim
     2 FILES = src/stomp.nim
     3 CACHE = .cache
     3 CACHE = .cache
     4 
     4 
     5 default: development
     5 default: development
     6 
     6 
     7 development: ${FILES}
     7 development: ${FILES}
     8 	nim --debugInfo --assertions:on --linedir:on -d:ssl --define:debug --nimcache:${CACHE} c ${FILES}
     8 	nim --debugInfo --assertions:on --linedir:on -d:ssl --define:debug --nimcache:${CACHE} c ${FILES}
       
     9 	@mv src/stomp .
     9 
    10 
    10 autobuild:
    11 autobuild:
    11 	# find . -depth 1 -name \*.nim | entr -cp make
    12 	# find . -depth 1 -name \*.nim | entr -cp make
    12 	echo ${FILES} | entr -c make
    13 	echo ${FILES} | entr -c make
    13 
    14 
    14 debugger: ${FILES}
    15 debugger: ${FILES}
    15 	nim --debugger:on --nimcache:${CACHE} c ${FILES}
    16 	nim --debugger:on --nimcache:${CACHE} c ${FILES}
    16 
    17 
    17 release: ${FILES}
    18 release: ${FILES}
    18 	nim -d:release --opt:speed --nimcache:${CACHE} c ${FILES}
    19 	nim -d:release --opt:speed --nimcache:${CACHE} c ${FILES}
       
    20 	@mv src/stomp .
    19 
    21 
    20 docs:
    22 docs:
    21 	nim doc ${FILES}
    23 	nim doc ${FILES}
    22 	#nim buildIndex ${FILES}
    24 	#nim buildIndex ${FILES}
    23 
    25