Skip to content

Instantly share code, notes, and snippets.

@MagnusTiberius
Created August 10, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MagnusTiberius/7a3b63db478ed5c783bf9131312d34e8 to your computer and use it in GitHub Desktop.
Save MagnusTiberius/7a3b63db478ed5c783bf9131312d34e8 to your computer and use it in GitHub Desktop.
mkdir src
echo '//#include <confg.h>
#include <stdio.h>
int
main (void)
{
puts("Hello World!");
//puts("This is " PACKAGE_STRING ".");
return 0;
}' > src/main.c
echo '
This is a readme file
' > README
echo 'bin_PROGRAMS = hello
hello_SOURCES = main.c
' > src/Makefile.am
echo 'SUBDIRS = src
dist_doc_DATA = README
' > Makefile.am
echo 'AC_INIT([amhello], [1.0], [bug@test.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT' > configure.ac
autoreconf --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment