pncal: clean up generated Makefile
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 2 May 2014 18:41:32 +0000 (14:41 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 12 May 2014 14:10:13 +0000 (10:10 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/pnacl_platform.nit

index ebbf3b6..e26747b 100644 (file)
@@ -90,7 +90,6 @@ CXXFLAGS := -pthread -std=gnu++98 $(WARNINGS)
 GETOS := python $(NACL_SDK_ROOT)/tools/getos.py
 OSHELPERS = python $(NACL_SDK_ROOT)/tools/oshelpers.py
 OSNAME := $(shell $(GETOS))
-RM := $(OSHELPERS) rm
 
 PNACL_TC_PATH := $(abspath $(NACL_SDK_ROOT)/toolchain/$(OSNAME)_pnacl)
 PNACL_CXX := $(PNACL_TC_PATH)/bin/pnacl-clang
@@ -104,28 +103,15 @@ LDFLAGS := -L$(NACL_SDK_ROOT)/lib/pnacl/Release -lppapi_cpp -lppapi
 CYGWIN ?= nodosfilewarning
 export CYGWIN
 
-
 # Declare the ALL target first, to make the 'all' target the default build
 all: ../../{{{outname}}}/{{{app_name}}}.pexe
 
-clean:
-       $(RM) {{{app_name}}}.pexe
-
 {{{app_name}}}.pexe: src/{{{cfiles.join(" src/")}}}
        $(PNACL_CXX) -o $@ $^ -g -O0 $(CXXFLAGS) $(LDFLAGS) # For Debug
        # $(PNACL_CXX) -o $@ $^ -O3 $(CXXFLAGS) $(LDFLAGS) # For Release
 
 ../../{{{outname}}}/{{{app_name}}}.pexe: {{{app_name}}}.pexe
        $(PNACL_FINALIZE) -o $@ $<
-
-#
-# Makefile target to run the SDK's simple HTTP server and serve this example.
-#
-HTTPD_PY := python $(NACL_SDK_ROOT)/tools/httpd.py
-
-.PHONY: serve
-serve: all
-       $(HTTPD_PY) -C $(CURDIR)
                """.write_to_file(file)
 
                ### generate the minimal index.html